package com.dapeis.core.utils.json;

import java.lang.reflect.Type;

import com.ag.core.base.Pager;
import com.ag.utils.json.AGsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;

public class PagerGsonAdapter implements JsonSerializer<Pager> {
	@Override
	public JsonElement serialize(Pager pager, Type typeOfSrc,
			JsonSerializationContext context) {
		return pager.toJson(AGsonBuilder.create());
	}
}